home *** CD-ROM | disk | FTP | other *** search
- package Boxe;
-
- import com.siemens.mp.game.ExtendedImage;
- import com.siemens.mp.game.GraphicObjectManager;
- import com.siemens.mp.game.TiledBackground;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
-
- class CCombatLoading extends CScreen {
- static final int LOADING_STEP = 37;
- ExtendedImage doublebuffer;
- Image doublebufferImage;
- TiledBackground tiledBack;
- int _loading_step = 0;
-
- CCombatLoading() {
- System.gc();
- this.tiledBack = PGraphicObj.Load("combat.dat");
- this.tiledBack.setPositionInMap(0, 0);
- System.gc();
- this.doublebufferImage = Image.createImage(104, 80);
- this.doublebuffer = new ExtendedImage(this.doublebufferImage);
- System.gc();
- super._gfxManager = new GraphicObjectManager();
- super._gfxManager.addObject(this.tiledBack);
- System.gc();
- }
-
- void Percent(int var1) {
- this._loading_step = var1 * 37 / 100;
- this.Render();
-
- try {
- Thread.sleep(0L);
- System.gc();
- } catch (Exception var3) {
- System.out.println("Exception: " + var3);
- }
-
- }
-
- public void Render() {
- super._gfxManager.paint(this.doublebuffer, 0, 0);
- this.doublebuffer.getImage().getGraphics().setColor(255, 255, 255);
- this.doublebuffer.getImage().getGraphics().drawRect(48, 71, 40, 7);
- this.doublebuffer.getImage().getGraphics().fillRect(50, 73, this._loading_step, 4);
- this.doublebuffer.blitToScreen(0, 0);
- }
-
- public void Update() {
- }
-
- public void run() {
- System.gc();
-
- try {
- this.Render();
- Thread.sleep(0L);
- this.Percent(5);
- this.Percent(10);
- System.gc();
- CGame._ring_screen = new CRing(this);
- System.gc();
- this.Percent(83);
- this.Percent(85);
- this.Percent(87);
- System.gc();
- this.Percent(90);
- ((CRing)CGame._ring_screen)._round_screen = new CRound();
- System.gc();
- this.Percent(100);
- CGame.SetActiveScreen(CGame._ring_screen);
- CGame._ring_screen.addCommand(CGame.resumeCommand);
- CGame._ring_screen.addCommand(CGame.rematchCommand);
- CGame._ring_screen.addCommand(CGame.resetCommand);
- CGame._ring_screen.addCommand(CGame.exitCommand);
- } catch (Exception var2) {
- System.out.println("Exception: " + var2);
- }
-
- }
-
- public void paint(Graphics var1) {
- }
- }
-